package cn.thornbird.orgsync.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Entity
@Table(name = "cities")
@Where(clause = "deleted_at is null")
public class City extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -8109986785395555440L;

    @Column(name = "parent_id")
    private String parentId;

    @Column(name = "city_number")
    private Short cityNumber;

    @Column(name = "name")
    private String name;

    @Column(name = "order_number")
    private Integer orderNumber;

}
